package cn.arnold.offer.kujiale;

/**
 * @author Arnold-Xiang
 * @Info
 */
public class Test {
    private static int j = 0;

    private static boolean methodB(int k){
        j+=k;
        return true;
    }
    private static boolean methodA(int i){
        boolean b;
        b=i<10 | methodB(4);
        b=i<10 || methodB(8);
        return true;
    }

    public static void main(String[] args) {
        methodA(0);
        System.out.println(j);
        System.out.println(recurit(8));
    }

    public static int recurit(int n){
        if (n<=3){
            return 1;
        }else {
            return recurit(n-2)+recurit(n-4)+1;
        }
    }
}
